package com.itheima.service.impl.oms;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.itheima.mapper.oms.OmsOrderOperateHistoryMapper;
import com.itheima.pojo.oms.OmsOrderOperateHistory;
import com.itheima.service.oms.OmsOrderOperateHistoryService;
import org.apache.dubbo.config.annotation.DubboService;

import java.util.List;

@DubboService
public class OmsOrderOperateHistoryServiceImpl extends ServiceImpl<OmsOrderOperateHistoryMapper, OmsOrderOperateHistory> implements OmsOrderOperateHistoryService {
    @Override
    public List<OmsOrderOperateHistory> GeiByID(int id) {
        LambdaQueryWrapper<OmsOrderOperateHistory> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.eq(OmsOrderOperateHistory::getOrderId,id);
        List<OmsOrderOperateHistory> list = this.list(queryWrapper);
        return list;
    }
}
